import { createApp } from 'vue'

import App from './App.vue'
//引入
import router from './router';


import "../assets/gobal.scss"
// 路由守卫
import "./guard"
//引入全局less
import "./assets/global.less"
// 面包屑组件
import bread from "./components/bread/index.vue"
// eventbus
import bus from './utils/bus';


let app =createApp(App)
 //全局注册组件，所有组件都可用，无需引入
app.component('bread',bread)
// bus添加到全局
app.config.globalProperties.$bus=bus;

// 作用：用它。显示它
app.use(router)

app.mount('#app')



